package com.ma.middleware.dynamic.thread.pool.types;

import lombok.*;

import java.io.Serializable;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Response<T> implements Serializable {
    private static final long serialVersionUID = -2474596551402989285L;
    private String code;
    private String info;
    private T data;

    /**
     * 形态分析是技术分析领域中比较简明实用的分析方法，把走势中若干典型的形态作出归纳，并命名之，
     */
    @Getter
    @NoArgsConstructor
    @AllArgsConstructor
    public enum Code{
        SUCCESS("0000","调用成功"),
        UN_ERROR("0001","调用失败"),
        ILLEGAL_PARAMETER("0002","非法参数");
        private String code;
        private String info;
    }
}
